<?php
defined('_JEXEC') or die('Restricted Access');

JHtml::_('behavior.tooltip');
$user = &JFactory::getUser();
?>
<form action="<?php echo JRoute::_('index.php?option=com_audience'); ?>" method="post" id="adminForm" name="adminForm">
	<?php if (!empty( $this->sidebar)) : ?>
	<div id="j-sidebar-container" class="span2">
		<?php echo $this->sidebar; ?>
	</div>
	<div id="j-main-container" class="span10">
	<?php else : ?>
		<div id="j-main-container">
	<?php endif;?>

	<br clear="all">
	<table class="table table-striped adminlist" id="articleList">
		<thead>
			<tr>		
				<th width="50%" class="nowrap">
					Products Name
				</th>
				<th class="center">
					Products Code
				</th>
				<th class="center">
					Quantity
				</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($this->product_report as $item) : ?>
				<tr>
					<th scope="row">
						<a href="<?php echo $item->editLink; ?>">
							<?php echo $item->productname;?></a>
					</th>
					<td class="center">
						<?php echo $item->p_code; ?>
					</td>
					<td class="center">
						<?php echo $item->quantity; ?>
					</td>
					
				</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
	<div>
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
		<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
	</div>
</form>
